﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ozone.Models.ViewModel
{
    public class Process2ViewModel : ViewModelBase
    {
        private static Process2ViewModel instance = null;
        private static object _lock = new object();
        private Process2ViewModel()
        {
            Percentage = 0;
            WorkTime = "03h  01min  28s";
            Remainingtime = "05h  10min  2s";
        }
        public static Process2ViewModel Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (_lock)
                    {
                        if (instance == null)
                        {
                            instance = new Process2ViewModel();
                        }
                    }
                }
                return instance;
            }
        }


        /// <summary>
        /// 工作百分比
        /// </summary>
        public int _Percentage;
        public int Percentage
        {
            get => _Percentage;
            set => SetProperty(ref _Percentage, value);
        }



        /// <summary>
        /// 工作时间
        /// </summary>
        public string _WorkTime;
        public string WorkTime
        {
            get => _WorkTime;
            set => SetProperty(ref _WorkTime, value);
        }

        /// <summary>
        /// 工作剩余时间
        /// </summary>
        public string _Remainingtime;
        public string Remainingtime
        {
            get => _Remainingtime;
            set => SetProperty(ref _Remainingtime, value);
        }
    }
}
